import { createActionGroup, emptyProps, props } from '@ngrx/store';
import {List} from "../model/list.model";

export const ListActions = createActionGroup({
  source: 'List',
  events: {
    'Load Lists': emptyProps(),
    'Add Lists': props<{ data: {name: string,age: number} }>(),
    'Delete Lists': props<{ data: {id: number} }>(),
    'Update Lists': props<{ data: List }>(),
    'Delete Multiple Lists': props<{ data: List[]}>(),
    // entity
    'Add Entity': props<{ data: {name: string,age: number} }>(),
    'Remove Entity': props<{ data: {id: number} }>(),
    'Update Entity': props<{ data: List }>(),
    'Remove Multiple Entity': props<{ data: List[]}>(),
  }
});

